﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;
using System.Data;

namespace OpenComposite.HumanActivity.Contracts
{
	[ServiceContract(Namespace = "http://www.OpenComposite.com/internal")]
	public interface IAttachmentService
	{
		[OperationContract, FaultContract(typeof(HumanActivityFault))]
		List<AttachmentItem> GetAttachmentList(LogInData userdata, Guid workflowInstanceId);
		[OperationContract, FaultContract(typeof(HumanActivityFault))]
		byte[] GetAttachmentData(LogInData userdata, int attachmentId);
		[OperationContract, FaultContract(typeof(HumanActivityFault))]
		bool SetAttachment(LogInData userdata, AttachmentItem attachment);
		[OperationContract, FaultContract(typeof(HumanActivityFault))]
		bool DeleteAttachment(LogInData userdata, int attachmentId);
	}
}
